package com.ysy.tz.mfg.component;

public class PigGradingAction {
    private String actionDesc;
    private String actionCode;
    private int pos;

    public PigGradingAction() {
    }

    public String getActionDesc() {
        return this.actionDesc;
    }

    public String getActionCode() {
        return this.actionCode;
    }

    public int getPos() {
        return this.pos;
    }

    public void setActionDesc(String actionDesc) {
        this.actionDesc = actionDesc;
    }

    public void setActionCode(String actionCode) {
        this.actionCode = actionCode;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof PigGradingAction)) {
            return false;
        } else {
            PigGradingAction other = (PigGradingAction)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.getPos() != other.getPos()) {
                return false;
            } else {
                Object this$actionDesc = this.getActionDesc();
                Object other$actionDesc = other.getActionDesc();
                if (this$actionDesc == null) {
                    if (other$actionDesc != null) {
                        return false;
                    }
                } else if (!this$actionDesc.equals(other$actionDesc)) {
                    return false;
                }

                Object this$actionCode = this.getActionCode();
                Object other$actionCode = other.getActionCode();
                if (this$actionCode == null) {
                    if (other$actionCode != null) {
                        return false;
                    }
                } else if (!this$actionCode.equals(other$actionCode)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof PigGradingAction;
    }

    public int hashCode() {
        int result = 1;
        result = result * 59 + this.getPos();
        Object $actionDesc = this.getActionDesc();
        result = result * 59 + ($actionDesc == null ? 43 : $actionDesc.hashCode());
        Object $actionCode = this.getActionCode();
        result = result * 59 + ($actionCode == null ? 43 : $actionCode.hashCode());
        return result;
    }

    public String toString() {
        return "PigGradingAction(actionDesc=" + this.getActionDesc() + ", actionCode=" + this.getActionCode() + ", pos=" + this.getPos() + ")";
    }
}
